﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lab_SE_5
{
    class gems
    {
        public int weight {get; set;}
        public int price  {get; set;}
        public string name   {get; set;}

        public gems()
        {
            weight = 0;
            price = 0;
        }

        public gems(int _weight, int _price)
        {
            weight = _weight;
            price = _price;
        }

        public void update_gems(int _weight, int _price)
        {
            weight = _weight;
            price = _price;
        }
    }

    //****************************************************************************************************************************************
    class precious_gems: gems
    { }

    class diamond : precious_gems
    {
       public diamond()
        {
            name = "diamond";
        }
    }

    class emerald : precious_gems
    {
        public emerald()
        {
            name = "emerald";
        }
    }
    
    //****************************************************************************************************************************************
    class semiprecious_gems : gems
    { }

    class quartz : semiprecious_gems
    {
        public quartz()
        {
            name = "quartz";
        }
    }

    class tourmaline: semiprecious_gems
    {
        public tourmaline()
        {
            name = "tourmal";
        }
    }

    //****************************************************************************************************************************************

}
